#!/bin/sh

# Get web page from any URL
# Author : James Tan
# Copyright: "(C) 20012-2013 James Tan. GNU GPL 3."
# Version: v0.10 (beta)

# History (update half a month)
# v0.1  - 01/14/2013

URL=$1

echo "get web $URL" > page.txt
wget -o wget.log -O page.html --keep-session-cookies --save-cookies wget.cookie "$URL"

./tidy -f tidy.log page.html >> page.txt
